<?php


namespace app\api\model;


class DistributConfig extends BaseModel
{
    protected $autoWriteTimestamp = true;

    /**
     * 添加分销配置
     * @param $data
     * @return DistributConfig
     */
    public static function createData($data){
        return self::create($data);
    }

    /**
     * 获取分销配置
     * @param $t_id
     * @return array|false|\PDOStatement|string|\think\Model
     * @throws \think\db\exception\DataNotFoundException
     * @throws \think\db\exception\ModelNotFoundException
     * @throws \think\exception\DbException
     */
   public function getInfo($t_id){
        return self::where('t_id','=',$t_id)->find();
   }




}